package base.annotation.cls;

import base.annotation.UseCase;

public class PasswordUtils {

	@UseCase(id = 47, description = "Passwords must contain at least one numeric")
	public boolean validatePassword(String pwd) {
		return (pwd.matches("\\w*\\d\\w*"));
	}

	@UseCase(id = 42)
	public String encryptPassword(String pwd) {
		return new StringBuffer(pwd).reverse().toString();
	}

}
